<?php
include_once('../global.php');
$show = $_GET['show'];
$cls_id = $_GET['cls_id'];
$biaoji = isset($_GET['biaoji']) ? $_GET['biaoji'] : "";
$roundtext = array(
	1 => '第一轮',
	2 => '第二轮',
	3 => '决赛轮',
	4 => '',
);
?>
<!DOCTYPE html
	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
	<meta name="viewport"
		content="width=device-width, initial-scale=1, minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<link href="<?php echo CSS_PATH ?>main.css" rel="stylesheet" type="text/css">
	<link href="<?php echo CSS_PATH ?>index.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="<?php echo JS_PATH ?>jquery-1.8.3.min.js"></script>
	<script type="text/javascript" src="<?php echo JS_PATH ?>main.js"></script>
	<title>成绩直播-<?php echo $match_cn_name ?>-Scoring By 斯科云科技</title>
	<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>


	<script type="text/javascript">
		var url = location.href;
		var wxdata;
		//alert(url.split("&")[0]);
		console.log(url.replace(/\&/g, "%26").replace(/\#/g, "%23"));
		$.ajax({
			type: "get",
			//url : "../interface/joysports/Home/gettoken/?url="+ url.replace(/\&/g,"%26").replace(/\#/g,"%23"), location.href.split('#')[0]
			url: "../../interface/Bmwtnc/Home/gettoken/?url=" + encodeURIComponent(location.href.split('#')[0]),
			dataType: "jsonp",
			jsonp: "callback",
			jsonpCallback: "success_jsonpCallback",
			success: function (data) {
				console.log(data);
				wxdata = data;
				wx.config({
					debug: false,
					appId: data.appId,
					timestamp: data.timestamp,
					nonceStr: data.nonceStr,
					signature: data.signature,
					jsApiList: [
						'updateAppMessageShareData',//
						'updateTimelineShareData'
					]
				});
				wx.ready(function () {
					var shareData = {
						title: '<?php echo $match_cn_name ?>-成绩直播-Scoring By 斯科云科技',
						desc: '<?php echo $course_name ?>-Scoring By 斯科云科技',
						link: url,
						imgUrl: 'https://mapp.scoringchina.com/bmwjunior/mobile/images/logo.png'
					};
					//alert(wxdata.url);
					//alert(url);
					wx.updateAppMessageShareData(shareData);//分享给好友
					wx.updateTimelineShareData(shareData);//分享到朋友圈
					wx.onMenuShareQQ(shareData);//分享给手机QQ
					wx.onMenuShareWeibo(shareData);//分享腾讯微博
					wx.onMenuShareQZone(shareData);//分享到QQ空间



				});
				wx.error(function (res) {
					console.log(res);
					alert(res.errMsg);//错误提示

				});
			},
			error: function (data) {
				console.log(data);
				alert("连接失败！");
			}
		});








		var pullrefresh = {
			init: function () {
				var pos = {};
				var status = false;
				var divobj = null;
				var contentobj = null;
				var reloadflag = false;
				$('body').on('touchstart', function (e) {
					e = mygetnativeevent(e);
					pos.startx = e.touches[0].pageX;
					pos.starty = e.touches[0].pageY;
				})
					.on('touchmove', function (e) {
						e = mygetnativeevent(e);

						pos.curposx = e.touches[0].pageX;
						pos.curposy = e.touches[0].pageY;
						if (pos.curposy - pos.starty < 0 && !status) {
							return;
						}
						if (!status && $(window).scrollTop() <= 0) {
							status = true;
							divobj = document.createElement('div');
							divobj = $(divobj);
							divobj.css({ 'position': 'relative', 'margin-left': '-85px' });
							$('body').prepend(divobj);
							contentobj = document.createElement('div');
							contentobj = $(contentobj);
							contentobj.css({ 'position': 'absolute', 'height': '30px', 'top': '-30px', 'left': '50%' });
							contentobj.html('<img src="./images/icon_arrow.gif" style="vertical-align:middle;margin-right:5px;-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg);"><span id="refreshtxt">下拉可以刷新</span>');
							contentobj.find('img').css({ '-webkit-transition': 'all 0.5s ease-in-out' });
							divobj.prepend(contentobj);
							pos.topx = pos.curposx;
							pos.topy = pos.curposy;
						}
						if (!status) {
							return;
						}
						if (status == true) {
							var pullheight = pos.curposy - pos.topy;
							if (pullheight >= 0 && pullheight < 100) {
								divobj.css({ 'height': pullheight / 2 + 'px' });
								contentobj.css({ 'top': (-30 + pullheight / 2 + 60) + 'px' });
								if (reloadflag) {
									contentobj.find('img').css({ '-webkit-transform': 'rotate(180deg)', '-moz-transform': 'rotate(180deg)', '-o-transform': 'rotate(180deg)', 'transform': 'rotate(180deg)' });
									contentobj.find('#refreshtxt').html('下拉可以刷新');
								}
								reloadflag = false;
							} else if (pullheight >= 100) {
								divobj.css({ 'height': pullheight / 2 + 'px' });
								contentobj.css({ 'top': (-30 + pullheight / 2 + 60) + 'px' });
								if (!reloadflag) {
									contentobj.find('img').css({ '-webkit-transform': 'rotate(360deg)', '-moz-transform': 'rotate(360deg)', '-o-transform': 'rotate(360deg)', 'transform': 'rotate(360deg)' });
									contentobj.find('#refreshtxt').html('松开可以刷新');
								}
								reloadflag = true;
							}
						}
						e.preventDefault();
					})
					.on('touchend', function (e) {
						if (status == true) {
							if (reloadflag) {
								contentobj.html('<img src="./images/icon_load.gif" style="vertical-align:middle;margin-right:5px;">正在加载...');
								contentobj.animate({ 'top': (-30 + 75 + 60) + 'px' }, 618, 'linear');
								divobj.animate({ 'height': '75px' }, 618, 'linear', function () {
									//window.location = './index.php?mt_id='+mt_id + '&rd_id='+rd_id;

									getdata(rd_id, true, divobj, contentobj, status, function () {
										if (divobj) {
											divobj.remove();
										}
										divobj = null;
										status = false;
										pos = {};
									});

								});

								return;
							}
						}
						if (divobj) {
							divobj.remove();
						}
						divobj = null;
						status = false;
						pos = {};
					});
			}
		};
		function mygetnativeevent(event) {
			while (event && typeof event.originalEvent !== "undefined") {
				event = event.originalEvent;
			}
			return event;
		};
		$(document).ready(function () {
			//console.log($('.pullrefresh').length)
			if ($('.pullrefresh').length > 0) {
				//pullrefresh.init();
			}
		});

		var mt_id = <?php echo $mt_id; ?>;
		var rd_id = <?php echo $rd_id; ?>;
		var mt_sts = '<?php echo $mt_sts; ?>';
		var mt_round = <?php echo $mt_round; ?>;
		var cls_id = '<?php echo $cls_id; ?>';
		var biaoji = '<?php echo $biaoji; ?>';

		var time = 60 * 5; //自动刷新五分钟
		getdata(rd_id, true);


		var interval = setInterval(function () {
			if (mt_sts == 'O') {
				time = 60 * 5;
				getdata(rd_id, false);
			}
			else if (mt_sts == 'N') {
				time = 60 * 30; //半小时刷新一次
				getdata(rd_id, false);
			}
			else {
				clearInterval(interval);
			}
		}, time * 1000);


		function gotomain() {
			window.location = './main.php';
		}

		function gotogroup() {
			window.location = './group.php?mt_id=' + mt_id + '&biaoji=' + biaoji;

		}

		function getdata(rd, isloading, divobj, contentobj, status, func) {
			if (isloading) {
				$('#loadingimg').show();
			}
			// console.log(rd);
			$.ajax({
				url: './data/index-data.php?time=' + Date.now() + '&mt_id=' + mt_id + '&rd_id=' + rd_id + '&cls_id=' + cls_id + '&biaoji=' + biaoji,
				dataType: "html",
				success: function (res) {
					//console.log(res)
					var score_new = res.split('<--split-->');

					// $("#newhtml").html(res);
					// var score_new = $("#newhtml .lf_scroll_box1").html();
					$("#scoringlists").html(score_new[0]);
					$("#scoringlistshbh").html(score_new[1]);

					console.log(score_new[0]);
					console.log(score_new[1]);
					showandhidetd(IsMobile());
					//console.log(page);
				},
				complete: function () {
					if (func) {
						func();
					}

					if (isloading) {
						$('#loadingimg').hide();
					}
				}
			})
		}

		function changeround(rd) {
			if (rd <= mt_round) {
				rd_id = rd;
				//getdata(rd_id);

				window.location = './index.php?mt_id=' + mt_id + '&rd_id=' + rd_id + '&cls_id=' + cls_id;;
			}
		}


		/*  滚动到顶部*/
		$(function () {
			$("#go_top").hide();
			 if(window.orientation == 90 || window.orientation == 270){
				
             $('#scoringlists').height($(window).height() - 10);
			 $('#scoringlistshbh').height($(window).height()  - 10);
			$('.bottommenu').hide();
				
            }else{
                $('.bottommenu').show();
				 $("#go_top").hide();
				  $('#scoringlists').height($(window).height() - 120 - 60 - 80);
			$('#scoringlistshbh').height($(window).height() - 120 - 60 - 80);
				
            }
			/*$('#scoringtable tbody').height( $(window).height()-120-60-80);
			$('#scoringtable tbody').height( $(window).height()-120-60-80);*/
		})
		
		
		  $(window).on("orientationchange",function(event){
			console.log(window);
				$("#go_top").hide();
            if(window.orientation == 90 || window.orientation == 270){
				
             $('#scoringlists').height($(window).height() - 10);
			 $('#scoringlistshbh').height($(window).height()  - 10);
			$('.bottommenu').hide();
				
            }else{
                $('.bottommenu').show();
				 $("#go_top").hide();
				  $('#scoringlists').height($(window).height() - 120 - 60 - 80);
			$('#scoringlistshbh').height($(window).height() - 120 - 60 - 80);
				
            }
        });

		//scroll() 方法为滚动事件  
		$(window).scroll(function () {
			if ($(window).scrollTop() > 100) {
				$("#go_top").fadeIn(800);
			} else {
				$("#go_top").fadeOut(800);
			}
			/*
			if($(window).scrollTop() + $('#thhead').offset().top - 86 > 0){
				$('#thead').html($('#thhead').html());
				$('#thead').show();
			}
			else{
				$('#thead').hide();
			}*/

			//获取现在的位置

			/*var offset = $(this).scrollTop();
		var groupindex = '';
		if($("#con1").is(":visible")){
		var headertop =  $("#thhead").offset().top;
		if(headertop - offset <=86   ){
					
		
			
			var trheader = $("#thhead").html();
			
			$('.thead').html(trheader);
			$('.thead').show();
		}
		
		else{
			$('.thead').hide();
		}
		}
		
		if($("#con2").is(":visible")){
		var headertop =  $("#thheadhbh").offset().top;
		if(headertop - offset <=80   ){
					
		
			
			var trheader = $("#thheadhbh").html();
			
			$('.thead').html(trheader);
			$('.thead').show();
		}
		
		else{
			$('.thead').hide();
		}
		}*/
		});

		/* //返回顶部按钮点击
		 $("#go_top").click(function(){
				$('body,html').animate({scrollTop:0},100);
				return false;
		 });*/

		function gotottop() {
			$('body,html').animate({ scrollTop: 0 }, 100);
			return false;
		}


		function gotocls(clsid) {
			window.location = './index.php?mt_id=' + mt_id + '&rd_id=' + rd_id + '&cls_id=' + clsid + "&biaoji=<?php echo $biaoji ?>";
		}


		function scrollPosition(pElementId) {
			var tTop = jQuery("#" + pElementId).offset().top;  //得到控件Top
			var tWindowHeight = jQuery(window).height(); //浏览器可视窗口高度
			var tElementHeight = jQuery("#" + pElementId).height(); //控件高度
			var tScrollTop = tTop - 126; //让控件中心位于可视窗口3分之1处
			jQuery('html, body').animate({
				scrollTop: tScrollTop
			}, 1000);
		}



	</script>
	<style>
		#sta {
			position: relative;
			z-index: 99;
			height: 80px;
			width: 100%;
			background-color: transparent;
			left: 0;
			top: 0;
		}

		.up {
			width: 40px;
			height: 40px;
			position: fixed;
			left: 2vw;
			bottom: 5vw;
		}

		.index_news .bjtitle {
			background-image: url('./images/ad.jpg');
			font-family: pangmen;
			color: #fff;
			background-size: cover;
			;
			box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
			padding-top: 20px;
			line-height: 50px;
		}



		#content_score {
			min-height: 360px;
			padding: 10px 0 2px;
			overflow: scroll;
			max-height: 100vh;

		}

		#loadingimg {
			width: 40px;
			height: 40px;
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%, -50%);
			z-index: 999;
		}

		.radius_fillet3 {
			border-radius: 3px;
		}

		.tt_bar {
			height: 30px;
			border-bottom: 1px solid #e3e3e3;
		}

		.score_title2 {
			height: 30px;
			border-bottom: 1px solid #e3e3e3;
			text-indent: 14px;
		}

		.score_back {
			text-align: right;
			padding-right: 14px;
		}

		.bt_back {
			display: inline-block;
			width: 40px;
			height: 18px;
			line-height: 18px;
			cursor: pointer;
			border: 1px solid #363636;
			color: #363636;
			font-size: 12px;
			text-align: center;
		}

		.score_tround {
			height: 30px;
			line-height: 30px;
		}

		.score_tround span {
			color: #363636;
			float: right;
			font-size: 18px;
			height: 26px;
			line-height: 32px;
			margin-right: 15px;
			text-align: center;
			width: 50px;
		}

		.index_news {
			padding: 0 15px;
		}

		.banner {
			width: 100%;
			height: auto;
		}
	</style>
	<!--header-->
	<style>
		#navi_wait {
			height: 35px;
			background-color: #E3E3E3;
		}

		#navi_wait ul li {
			width: 32%;
			display: inline;
			float: left;
			/*line-height:33px;*/

			line-height: 36px;
			list-style-position: inside;
			border-bottom: 1px solid #A5A5A5;
			text-align: center;
		}

		#navi_wait ul li a {
			color: #767676;
			font-size: 19px;
			letter-spacing: 5px;
		}

		.scoringtable {
			border-radius: 10px;
			border-collapse: collapse;
			border-style: hidden;
			/*background:linear-gradient(145deg, #000519, #095557);*/
			box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
			border-collapse: collapse;

			color: #fff;
			position: relative;
			margin-top: 40px;
			left: 0;
			margin-bottom: 40px;
			border-collapse: collapse;
			border: none;
		}

		th,
		td {
			border-left: none;
			border-right: none;

		}

		.scoringtable th {
			position: sticky;
			top: 0;
			z-index: 10;
		}

		.scoringtable tr {
			border-bottom: 1px solid #fff;
			background-color: transparent;
			height: 30px;
			position: relative;
		}

		.scoringtable .oddrowcolor {
			background-color: transparent;
		}

		.topar {
			width: 30px;
			height: 30px;
			border-radius: 100%;
			margin: auto auto auto auto;
			color: #fff;
			display: flex;
			justify-content: center;
			align-items: center;
			fong-weight: bolder;

		}

		.undereven {
			font-weight: bolder;
			background-color: #B7001F;
			color: #fff;
		}

		.even {
			font-weight: bolder;
			background-color: #53565A;
			color: #fff;
		}

		.pluseven {
			font-weight: bolder;
			background-color: #00438A;
			color: #fff;
		}


		.groupcode {
			display: flex;
			flex-direction: row;
			justify-content: center;
			align-items: center;
			width: 100%;
			height: 40px;
			position: absolute;
			border: none;
		}

		.groupcode div {
			width: 25%;
			height: 100%;
			display: flex;
			justify-content: center;
			align-items: center;
			background: #fff;
			/*linear-gradient(145deg, #42636b, #457374);*/
			font-weight: 500px;
			color: #42636b;
			font-size: 12px;

		}

		.scoringlists {
			border: 1px solid #fff;
			overflow: scroll;
			position: relative;
			width:96%;
			margin-left:2%;
		}

		.full {
			width: 100vw;
			height: 100vh;
			position: absolute;
			left: 0;
			top: 0;
			z-index: 99999;
		}

		.full img {
			width: 100%;
			height: 100%;
			position: absolute;
			object-fit: cover;
		}


		.groupcode .selectedmenu {
			background: linear-gradient(0deg, rgb(3, 40, 60), rgb(7, 77, 82));
			width: 25%;
			height: 100%;
			color: #fff;
			font-weight: bold;
			border-left: 1px solid #fff;
		}

		.scoringtable thead {
			position: relative;
			border: none;
			z-index: 999999;
			font-size: 10px;
			line-height: 40px;
			background: linear-gradient(0deg, rgb(3, 40, 60), rgb(7, 77, 82));
			border-radius: 0px;
			width: 100%;
			boder-bottom: 1px solid #fff;
		}

		.scoringtable thead th {
			background: linear-gradient(0deg, rgb(3, 40, 60), rgb(7, 77, 82));
		}

		.scoringtable tbody {
			position: relative;
			left: 0px;
			top: 40px;
			width: 100%;
			z-index: 99;
			font-size: 12px;
			overflow-y: scroll;
			border-radius: 0px;

		}

		.plphoto {
			width: 30px;
			height: 30px;
			background-color: #fff;
			border-radius: 100%;
			margin-left: 1px;
			margin-right: 1px;
			margin-top: 4px;
		}

		.sponsorcontainer {
			width: 98%;
			margin-left: auto;
			margin-right: auto;
			height: auto;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-wrap: wrap;

		}

		.sponsor {
			width: 4.5rem;
			height: 3rem;
			margin-left: auto;
			margin-right: auto;
			border-radius: 1vw;
		}
	</style>
</head>

<body id="body">
	<div id="fullloading" class="full" style="display:none;">
		<img id="imgfullloading" src="./images/pre.png" onclick="closefullpre();return false;">
	</div>


	<img id="loadingimg" src="./images/icon_load.gif" style="display:none;" />
	<div id="content_score" style="">
		<div id="sta">
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tbody>
					<tr>
						<td style="text-align:center;"><img src="./images/000.png" style="width:350px;height:80px" /></td>
						<!-- 右上角语言切换按钮 -->
						<div style="position: fixed; top: 30px; right: 10px; z-index: 1000;">
							<form method="get" style="margin: 0;">
								<button type="submit" name="lang" value="<?php echo $lang === 'CN' ? 'en' : 'CN'; ?>"
									style="background-color: transparent; color: #fff; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer;font-size:20px">
									<?php echo $lang === 'CN' ? 'EN' : 'CN'; ?>
								</button>
							</form>
						</div>
					</tr>
				</tbody>
			</table>
		</div>
		<div class="pullrefresh" style="display:none;"></div>

		<div class="clear_h10" style="clear:both; height:10px;"></div>
		<marquee style="margin-top:10px;display:none;" width="100%" align="absmiddle" height="30">
			<font style="color:#B7001F;">由于天黑原因第二轮比赛暂停，比赛将于第二天周四恢复，请各位球员于<b> 07:30 </b>前在出发广场集合，进行开球前准备工作。</font>
		</marquee>
		<div id="con1" class="index_news">
			<table class="altrowstable scoringtable bjtitle" style="display:none;">
				<tr>

					<td style="border:none; vertical-align:middle;">
						<div>
							<font style="font-weight:800;font-size:20px;"><?php echo $match_cn_name ?></font>
						</div>

					</td>
				</tr>
				<tr>

					<td style="border:none; vertical-align:middle;">
						<div>
							<font style="font-weight:700;font-size:17px;"><?php echo $course_name; ?></font>
						</div>

					</td>
				</tr>
				<tr>
					<td style="border:none; vertical-align:middle;">
						<div
							style="width:100px;float:right; margin-left:50px; margin-top:3px;color:#fff;border-radius:10px;margin-right:2px;">
							<a href="group.php?mt_id=<?php echo $mt_id ?>" style="color:#fff;">分组表>></a></div>
						<div>
							<?php if ($mt_sts == 'N') {
								echo '<font style="float:right;color:#fff; font-weight:bolder;font-size:15px;">比赛未开始</font>';
							} else if ($mt_sts == 'O') {
								echo '<font style="float:right;color:#fff;font-weight:bolder;font-size:15px;">' . $roundtext[$mt_round] . '进行中</font>';
							} else {
								echo '<font style="float:right;color:gray;font-weight:bolder;font-size:15px;">比赛已结束</font>';
							} ?>
							<?php ?>
						</div>

					</td>

				</tr>
			</table>



			<?php
			if ($mt_round < 1) {
				echo ' <div class="score_round" style="margin-left:auto;margin-right:auto;width:100%;justify-content: center;display:flex;float:left; align-items:center;">';

				for ($i = 1; $i <= $maxRound; $i++) {
					echo '<span class="jq_rclk" ' . (($i == $rd_id) ? 'style="float:left;border-radius:10px;background-color:#00438A;color:#fff;width:90px;margin-left:auto;margin-right:auto;"' : (($i <= $mt_round) ? 'style="float:left;border-radius:10px;background-color:#fff;color:#00438A;width:90px;margin-left:auto;margin-right:auto;"' : 'style="float:left;border-radius:10px;background-color:#53565A;color:#fff;width:90px;margin-left:auto;margin-right:auto;"')) . ' onclick="changeround(' . $i . ')">R' . $i . ' ' . $roundtext[$i] . '</span>';
				}


				echo '</div>';
			}
			?>

			<table class="altrowstable scoringtable thead" style="display:none;" id="thead"></table>

			<div class="<?php echo $css_class; ?>"
				style="position:absolute; right:3%; top:85px; float:right;width:200px;color:#fff;font-size:12px;text-align:right;padding-right:5px;">
				*<?php echo t('view_player_details'); ?> </div>
			<div id="scoringlists" class="scoringlists">






			</div>
		</div>


		<div id="con2" class="index_news" style="display: none;">
			<div id="as_con" style="display: none;">
				<font style="font-weight:bolder;font-size:17px;"><?php echo $match_cn_name ?></font>
				<div class="pluseven"
					style="width:60px;float:right;display:flex;justify-content:center; margin-left:5px; margin-top:3px;color:#fff;border-radius:10px;">
					<a href="group.php?mt_id=<?php echo $mt_id ?>" style="color:#fff;">分组表</a></div>
				<?php if ($mt_sts == 'N') {
					echo '<font style="float:right;color:#fff; font-weight:bolder;font-size:15px;">比赛未开始</font>';
				} else if ($mt_sts == 'O') {
					echo '<font style="float:right;color:#fff;font-weight:bolder;font-size:15px;">' . $roundtext[$mt_round] . '进行中</font>';
				} else {
					echo '<font style="float:right;color:#fff;font-weight:bolder;font-size:15px;">比赛已结束</font>';
				} ?>
				<?php ?>

			</div>
			<div class="score_round" style="display: none;">
				<?php
				for ($i = $maxRound; $i >= 1; $i--) {
					echo '<span class="jq_rclk" ' . (($i == $rd_id) ? 'style="float:right;border-radius:10px;background-color:#B7001F;color:#fff;width:90px;margin-left:auto;margin-right:auto;"' : (($i <= $mt_round) ? 'style="float:right;border-radius:10px;background-color:#fff;color:#00438A;width:90px;margin-left:auto;margin-right:auto;"' : 'style="float:right;border-radius:10px;background-color:#53565A;color:#fff;width:90px;margin-left:auto;margin-right:auto;"')) . ' onclick="changeround(' . $i . ')">R' . $i . ' ' . $roundtext[$i] . '</span>';
				}
				?>
				<input type="hidden" id="round_num" name="round_num" value="" data-role="none">
			</div>

			<div id="scoringlistshbh" class="scoringlists">




			</div>









		</div>
	</div>

	<div class="sponsorcontainer">
		<img class="sponsor" src="./images/s-005.png"></img>
		<img class="sponsor" src="./images/s-000.png"></img>
	  <img class="sponsor" src="./images/s-006.png"></img>
	</div>
	<div class="sponsorcontainer" style="margin-top: -10px;">
    <img class="sponsor" src="./images/s-001.png"></img>
		<img class="sponsor" src="./images/s-002.png"></img>
		<img class="sponsor" src="./images/s-004.png"></img>
		<img class="sponsor" src="./images/s-003.png"></img>
	</div>
	<img src="images/up.png" class="up" id="go_top" onclick="gotottop();">



	<div class="bottommenu">
		<div class="<?php echo $css_class; ?>" onclick="gotogroup()"> <?php echo t('event_groups_page'); ?></div>
		<?php if (empty($biaoji)) { ?>
			<div class="<?php echo $css_class; ?>" onclick="gotomain()"> <?php echo t('home_page'); ?></div>
		<?php } ?>
	</div>
	<div id="bottom" style="background-color:transparent;text-align:centre;display:none;justify-content: center;">
		<div id="bootom-top">
			<span style="width:100%;text-align:center">技术支持 @斯科云科技</span>
			<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
			<script>LA.init({ id: "JijETG4HGxctAarj", ck: "JijETG4HGxctAarj" })</script>
		</div>
	</div>
</body>
<script>
	////proloading();

	var pretime = "";
	function proloading() {

		let storage = new Storage();
		let value = storage.getItem('isReload');
		if (value == 1) {
			console.log("页面被刷新");

			$('#fullloading').fadeOut(1000);
			//$(this).fadeOut("fullloading");
			console.log($('#fullloading'));
		} else {
			console.log("首次被加载");

			//sessionStorage.setItem("isReload", true);
			let storage = new Storage();
			storage.setItem({
				name: "isReload",
				value: "1",
				expires: 24 * 3600 * 1000,   //一天 默认
				startTime: new Date().getTime()//记录何时将值存入缓存，毫秒级
			})
			//$('#fullloading').fadeIn();

			pretime = setTimeout(function () {
				$('#fullloading').fadeOut(1000);

			}, 2000);
		}
	}


	function closefullpre() {
		console.log($('#fullloading'));
		$('#fullloading').fadeOut(1000);

		clearTimeout(pretime);
	}
</script>

</html>